<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.19"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Simple TDMA implementation for OMNeT++: Rlc Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Simple TDMA implementation for OMNeT++
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.19 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pro-methods">Protected Member Functions</a> &#124;
<a href="#pro-attribs">Protected Attributes</a> &#124;
<a href="class_rlc-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">Rlc Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p><a class="el" href="class_rlc.html" title="Rlc is the OMNeT++ wrapper implemenatation of the RLC layer. It borrows its functionality from the Rl...">Rlc</a> is the OMNeT++ wrapper implemenatation of the RLC layer. It borrows its functionality from the <a class="el" href="class_rlc_core.html" title="RlcCore is a pure C++ implementation of the fragmentation/reassembly logic.">RlcCore</a> class.  
 <a href="class_rlc.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="_rlc_8h_source.html">Rlc.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for Rlc:</div>
<div class="dyncontent">
 <div class="center">
  <img src="class_rlc.png" alt=""/>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a2f76a047d5e07cbdb270bbc1199aaf4c"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_rlc.html#a2f76a047d5e07cbdb270bbc1199aaf4c">getBufferStatus</a> ()</td></tr>
<tr class="separator:a2f76a047d5e07cbdb270bbc1199aaf4c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a21f36a3671a3e31dbcebbbbebf2dc564"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_rlc.html#a21f36a3671a3e31dbcebbbbebf2dc564">requestFrame</a> (int size)</td></tr>
<tr class="separator:a21f36a3671a3e31dbcebbbbebf2dc564"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-methods"></a>
Protected Member Functions</h2></td></tr>
<tr class="memitem:a6e0b81bf10a9f6033cff1a4be34da5fe"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_rlc.html#a6e0b81bf10a9f6033cff1a4be34da5fe">~Rlc</a> ()</td></tr>
<tr class="separator:a6e0b81bf10a9f6033cff1a4be34da5fe"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a91218c9b05ede60a9149b44b8a5dbffd"><td class="memItemLeft" align="right" valign="top"><a id="a91218c9b05ede60a9149b44b8a5dbffd"></a>
virtual void&#160;</td><td class="memItemRight" valign="bottom"><b>initialize</b> (int stage) override</td></tr>
<tr class="separator:a91218c9b05ede60a9149b44b8a5dbffd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af1f5fc41062e1f51fbf272e4e8dd6799"><td class="memItemLeft" align="right" valign="top"><a id="af1f5fc41062e1f51fbf272e4e8dd6799"></a>
virtual void&#160;</td><td class="memItemRight" valign="bottom"><b>sendUp</b> (cMessage *message)</td></tr>
<tr class="separator:af1f5fc41062e1f51fbf272e4e8dd6799"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a126c06d450c2d452abacdbf43dbe1af4"><td class="memItemLeft" align="right" valign="top"><a id="a126c06d450c2d452abacdbf43dbe1af4"></a>
virtual void&#160;</td><td class="memItemRight" valign="bottom"><b>sendDown</b> (cMessage *message)</td></tr>
<tr class="separator:a126c06d450c2d452abacdbf43dbe1af4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac3e6a1209f63b8635dad98ef311fcb15"><td class="memItemLeft" align="right" valign="top"><a id="ac3e6a1209f63b8635dad98ef311fcb15"></a>
virtual void&#160;</td><td class="memItemRight" valign="bottom"><b>handleMessageWhenDown</b> (cMessage *msg) override</td></tr>
<tr class="separator:ac3e6a1209f63b8635dad98ef311fcb15"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5951499034b2a90e5928efd9f8f1110e"><td class="memItemLeft" align="right" valign="top"><a id="a5951499034b2a90e5928efd9f8f1110e"></a>
virtual void&#160;</td><td class="memItemRight" valign="bottom"><b>handleStartOperation</b> (LifecycleOperation *operation) override</td></tr>
<tr class="separator:a5951499034b2a90e5928efd9f8f1110e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1709fa1bc541d9507869cbeb21c2ae33"><td class="memItemLeft" align="right" valign="top"><a id="a1709fa1bc541d9507869cbeb21c2ae33"></a>
virtual void&#160;</td><td class="memItemRight" valign="bottom"><b>handleStopOperation</b> (LifecycleOperation *operation) override</td></tr>
<tr class="separator:a1709fa1bc541d9507869cbeb21c2ae33"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6d9c88a7b13b524f76d9add369c5d980"><td class="memItemLeft" align="right" valign="top"><a id="a6d9c88a7b13b524f76d9add369c5d980"></a>
virtual void&#160;</td><td class="memItemRight" valign="bottom"><b>handleCrashOperation</b> (LifecycleOperation *operation) override</td></tr>
<tr class="separator:a6d9c88a7b13b524f76d9add369c5d980"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a96a39d7ab784261cd66928084d53c744"><td class="memItemLeft" align="right" valign="top"><a id="a96a39d7ab784261cd66928084d53c744"></a>
virtual bool&#160;</td><td class="memItemRight" valign="bottom"><b>isInitializeStage</b> (int stage) override</td></tr>
<tr class="separator:a96a39d7ab784261cd66928084d53c744"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab271dfb959b0d4e017593f389c0d8a6e"><td class="memItemLeft" align="right" valign="top"><a id="ab271dfb959b0d4e017593f389c0d8a6e"></a>
virtual bool&#160;</td><td class="memItemRight" valign="bottom"><b>isModuleStartStage</b> (int stage) override</td></tr>
<tr class="separator:ab271dfb959b0d4e017593f389c0d8a6e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9834335bf51b486bfaee092acbba128e"><td class="memItemLeft" align="right" valign="top"><a id="a9834335bf51b486bfaee092acbba128e"></a>
virtual bool&#160;</td><td class="memItemRight" valign="bottom"><b>isModuleStopStage</b> (int stage) override</td></tr>
<tr class="separator:a9834335bf51b486bfaee092acbba128e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a249ebd43c8950b5e8d7623d12f21870f"><td class="memItemLeft" align="right" valign="top"><a id="a249ebd43c8950b5e8d7623d12f21870f"></a>
virtual bool&#160;</td><td class="memItemRight" valign="bottom"><b>isUpperMessage</b> (cMessage *message) override</td></tr>
<tr class="separator:a249ebd43c8950b5e8d7623d12f21870f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab68b5766197682ea4de7eb88b2000795"><td class="memItemLeft" align="right" valign="top"><a id="ab68b5766197682ea4de7eb88b2000795"></a>
virtual bool&#160;</td><td class="memItemRight" valign="bottom"><b>isLowerMessage</b> (cMessage *message) override</td></tr>
<tr class="separator:ab68b5766197682ea4de7eb88b2000795"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a21580927bcf9da07228618071e6e5700"><td class="memItemLeft" align="right" valign="top"><a id="a21580927bcf9da07228618071e6e5700"></a>
virtual void&#160;</td><td class="memItemRight" valign="bottom"><b>handleUpperPacket</b> (Packet *packet) override</td></tr>
<tr class="separator:a21580927bcf9da07228618071e6e5700"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a820ead57d528df9c649cd27e5ebd9eaa"><td class="memItemLeft" align="right" valign="top"><a id="a820ead57d528df9c649cd27e5ebd9eaa"></a>
virtual void&#160;</td><td class="memItemRight" valign="bottom"><b>handleLowerPacket</b> (Packet *packet) override</td></tr>
<tr class="separator:a820ead57d528df9c649cd27e5ebd9eaa"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adb8b749dbdee94b26decc29b62abfab9"><td class="memItemLeft" align="right" valign="top"><a id="adb8b749dbdee94b26decc29b62abfab9"></a>
virtual void&#160;</td><td class="memItemRight" valign="bottom"><b>handleSelfMessage</b> (cMessage *message) override</td></tr>
<tr class="separator:adb8b749dbdee94b26decc29b62abfab9"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-attribs"></a>
Protected Attributes</h2></td></tr>
<tr class="memitem:a45f7ba40a1c0585f2177dcf58cbaeba9"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_rlc_core.html">RlcCore</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_rlc.html#a45f7ba40a1c0585f2177dcf58cbaeba9">rlcCore</a> = nullptr</td></tr>
<tr class="separator:a45f7ba40a1c0585f2177dcf58cbaeba9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7802a06d72a11f6d4aa1cbc68e41f222"><td class="memItemLeft" align="right" valign="top"><a id="a7802a06d72a11f6d4aa1cbc68e41f222"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><b>upperLayerInGateId</b> = -1</td></tr>
<tr class="separator:a7802a06d72a11f6d4aa1cbc68e41f222"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0366361ddcb8e8ca2f579cbbbf8f2830"><td class="memItemLeft" align="right" valign="top"><a id="a0366361ddcb8e8ca2f579cbbbf8f2830"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><b>upperLayerOutGateId</b> = -1</td></tr>
<tr class="separator:a0366361ddcb8e8ca2f579cbbbf8f2830"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4a5d2ade020bb464fa6d26b85a8d8ec7"><td class="memItemLeft" align="right" valign="top"><a id="a4a5d2ade020bb464fa6d26b85a8d8ec7"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><b>lowerLayerInGateId</b> = -1</td></tr>
<tr class="separator:a4a5d2ade020bb464fa6d26b85a8d8ec7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab11a30f3d6482d1abe625e41b34f785e"><td class="memItemLeft" align="right" valign="top"><a id="ab11a30f3d6482d1abe625e41b34f785e"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><b>lowerLayerOutGateId</b> = -1</td></tr>
<tr class="separator:ab11a30f3d6482d1abe625e41b34f785e"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p><a class="el" href="class_rlc.html" title="Rlc is the OMNeT++ wrapper implemenatation of the RLC layer. It borrows its functionality from the Rl...">Rlc</a> is the OMNeT++ wrapper implemenatation of the RLC layer. It borrows its functionality from the <a class="el" href="class_rlc_core.html" title="RlcCore is a pure C++ implementation of the fragmentation/reassembly logic.">RlcCore</a> class. </p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="a6e0b81bf10a9f6033cff1a4be34da5fe"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6e0b81bf10a9f6033cff1a4be34da5fe">&#9670;&nbsp;</a></span>~Rlc()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">Rlc::~Rlc </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Standard destructor </p>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a2f76a047d5e07cbdb270bbc1199aaf4c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2f76a047d5e07cbdb270bbc1199aaf4c">&#9670;&nbsp;</a></span>getBufferStatus()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int Rlc::getBufferStatus </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>This function returns the current buffer status in bytes </p><dl class="section return"><dt>Returns</dt><dd>buffer fill level in bytes </dd></dl>

</div>
</div>
<a id="a21f36a3671a3e31dbcebbbbebf2dc564"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a21f36a3671a3e31dbcebbbbebf2dc564">&#9670;&nbsp;</a></span>requestFrame()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Rlc::requestFrame </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>size</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Called from the MAC layer to instruct the RLC layer to send down a frame in the required size </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">size</td><td>of the frame in bytes </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a id="a45f7ba40a1c0585f2177dcf58cbaeba9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a45f7ba40a1c0585f2177dcf58cbaeba9">&#9670;&nbsp;</a></span>rlcCore</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_rlc_core.html">RlcCore</a>* Rlc::rlcCore = nullptr</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Reference to the <a class="el" href="class_rlc_core.html" title="RlcCore is a pure C++ implementation of the fragmentation/reassembly logic.">RlcCore</a> instance </p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>src/rlc/<a class="el" href="_rlc_8h_source.html">Rlc.h</a></li>
<li>src/rlc/Rlc.cc</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by&#160;<a href="http://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.8.19
</small></address>
</body>
</html>
